export interface classifyInfo {
  id?: number | string;
  name?: string;
  parentId?: number;
  status?: number;
  createTime?: string;
  children?: classifyInfo[];
}

interface classifyList {
  id: number;
  name: string;
  parentId: number;
  level?: number;
  iconUrl?: string;
  sort?: number;
  createTime?: Date;
  updateTime?: Date;
  children?: classifyList[];
}

//分类ts类型
export interface CategoryObj {
  id: number;
  name: string;
  category1Id?: number;
}

export interface ResourceData {
  resourceTypes: classifyInfo[];
}

export interface ApiResponse {
  success?: boolean;
  code?: string;
  message?: string;
  data: ResourceData;
}

export interface Attr {
  id?: number | string;
  name?: string;
  parentId?: number;
  status?: number;
  createTime?: string;
  children?: Attr[];
}
